#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"


void Test()
{
	Stack st;


	StackInit(&st);

	int size = StackSize(&st);
	printf("size:%d\n", size);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);



	printf("%d ", StackTop(&st));
	StackPop(&st);
	printf("%d ", StackTop(&st));
	StackPop(&st);
	printf("%d ", StackTop(&st));
	StackPop(&st);
	printf("%d ", StackTop(&st));
	StackPop(&st);
	printf("%d ", StackTop(&st));
	StackPop(&st);






	StackDestory(&st);
}
int main()
{
	Test();
	return 0;
}